package com.wangzz.mallchat.common.user.controller;


import com.wangzz.mallchat.common.common.domain.dto.RequestInfo;
import com.wangzz.mallchat.common.common.domain.vo.resp.ApiResult;
import com.wangzz.mallchat.common.common.utils.RequestHolder;
import com.wangzz.mallchat.common.user.domain.vo.resp.UserInfoResp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author <a href="https://gitee.com/wang-123zefeng/chat">wangzz</a>
 * @since 2024-11-11
 */
@RestController
@RequestMapping("/capi/user")
@Api(tags = "用户模块")
public class UserController {

    @GetMapping("/userInfo")
    @ApiOperation(value = "获取用户信息")
    public ApiResult<UserInfoResp> getUserInfo() {
        RequestInfo user = RequestHolder.getUser();
        return ApiResult.success();
    }
}

